﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ESupervision.Models
{
    public class MessageSent
    {
        public int MessageSentID { get; set; }

        public int MessageID { get; set; }

        public string SentUserID { get; set; }

        [Required]
        public MessageStatus MessageStatus { get; set; }


        [Required]
        [DataType(DataType.DateTime)]
        [Display(Name = "Time")]
        public DateTime SentTime { get; set; }

        [ForeignKey("MessageID")]
        public virtual Message Message { get; set; }

        [ForeignKey("SentUserID")]
        public virtual ApplicationUser SentUser { get; set; }
    }
}